package com.danieldura.highrise.data
{
	public class Attachment implements HighriseData
	{
		public var id:int;
		public var url:String;
		
		public function parse( data:XML ):void
		{
			id = data.id;
			url = data.url;
		}
		
		public function toXML():XML
		{
			var data:XML = new XML( <attachment></attachment> );
			data.id = id
			data.url = url;
			return data;
		}
		
		public function toXMLString():String
		{
			return toXML().toXMLString();
		}		
	}
}

/*
    <attachment>
      <id type="integer">1</id>
      <url>http://example.highrisehq.com/.../picture.png</url>
    </attachment>
*/